package com.macro.admin.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 邮件日志表
 * </p>
 *
 * @author Xiao Hai
 * @since 2021-04-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_mail_log")
@ApiModel(value="MailLog对象", description="邮件日志表")
public class MailLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "消息id")
    @TableField(value = "msg_Id")
    private String msgId;

    @ApiModelProperty(value = "接收员工id")
    @TableField("e_id")
    private Integer eId;

    @ApiModelProperty(value = "状态（0:消息投递中 1:投递成功 2:投递失败）")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "路由键")
    @TableField("route_key")
    private String routeKey;

    @ApiModelProperty(value = "交换机")
    @TableField("exchange")
    private String exchange;

    @ApiModelProperty(value = "重试次数")
    @TableField("count")
    private Integer count;

    @ApiModelProperty(value = "重试时间")
    @TableField("try_time")
    private Date tryTime;

    @ApiModelProperty(value = "创建时间", example = "2019-01-01 8:00:00")
    @TableField(value = "gmt_create", fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间", example = "2019-01-01 8:00:00")
    @TableField(value = "gmt_modified",fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;


}
